import {recipeData} from '../../common/recipeData.js'
import router from '@system.router';
export default{
    data:{
        recipeData:recipeData,
        chooseId:0,
    },
    onInit(){
        this.chooseId=this.pid;
        console.info( this.chooseId);
        console.info(recipeData[this.chooseId]);
    },
    cookClick(){
        router.push({
            uri:'pages/status/status',
            params:{status:this.recipeData[this.chooseId].pattern,arr:this.recipeData[this.chooseId].valueArr,rname:this.recipeData[this.chooseId].name},
        })
    }
}